package top.lingkang.finalgateway.admin.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import top.lingkang.finalgateway.admin.entity.ConfigEntity;
import top.lingkang.mm.annotation.MagicMapper;
import top.lingkang.mm.orm.BaseMapper;

import java.util.Date;

/**
 * @author lingkang
 * @create by 2024/5/17 9:33
 */
@MagicMapper
public interface ConfigMapper extends BaseMapper<ConfigEntity> {
    @Update("update t_config set data=#{data}, update_time=#{t} where id=#{id}")
    int updateDataById(@Param("id") String id, @Param("data") String data, @Param("t") Date updateTime);
}
